import request from '@/utils/request'

// 查询租赁信息列表
export function listTenancy(query) {
  return request({
    url: '/service/tenancy/list',
    method: 'get',
    params: query
  })
}

// 查询租赁信息详细
export function getTenancy(id) {
  return request({
    url: '/service/tenancy/' + id,
    method: 'get'
  })
}

// 新增租赁信息
export function addTenancy(data) {
  return request({
    url: '/service/tenancy',
    method: 'post',
    data: data
  })
}

// 修改租赁信息
export function updateTenancy(data) {
  return request({
    url: '/service/tenancy',
    method: 'put',
    data: data
  })
}

// 删除租赁信息
export function delTenancy(id) {
  return request({
    url: '/service/tenancy/' + id,
    method: 'delete'
  })
}
